<template>
  <div id="app">

    <el-container>
      <el-header>
        <h1>我的演示VueCli</h1>
      </el-header>
      <el-container>
        <el-aside width="250px">
          <el-collapse  accordion>
            <el-collapse-item title="收货管理" name="1">
              <span>
                <router-link to="/student">收货人列表</router-link>
              </span>
            </el-collapse-item>
          </el-collapse>
        </el-aside>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>

  </div>
</template>

<script>

export default {
  name: 'App',
    data(){
      return {

      }
    },methods:{
        toStudent(){
            this.$router.push({path: '/student'});
        }
    }
}
</script>

<style>
  .el-header, .el-footer {
    background-color: #D11E1A;
    color: #00FF18;
    text-align: center;
  }

  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
    min-height: 800px;
  }

  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 160px;
  }

  body > .el-container {
    margin-bottom: 40px;
  }

  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }

  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
</style>
